package com.lemon.boot.common.thread.pool;

import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;

/**
 * @author 李猛
 * @datetime 2023/10/20 21:21
 * @description 类对象
 */
public class ExecutorThreadPoolGroup {
    //添加日志的线程池
    public static final ExecutorService logExecutorService = Executors.newFixedThreadPool(Runtime.getRuntime().availableProcessors());

    //欢迎页线程池
    public static final ExecutorService welcomeExecutorService = Executors.newFixedThreadPool(100);

    //提醒线程池
    public static final ExecutorService noticeExecutorService = Executors.newSingleThreadExecutor();

    //信息线程池
    public static final ExecutorService messageExecutorService = Executors.newSingleThreadExecutor();
}
